snapshot: Store an actual GtkTransform
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 00:54:01 +0000 (01:54 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000 (19:47 +0100)
commit4a293aa762630bbf798f255dd6dc0a828db50344
tree5f58cdad3cf9b0736ca61ffdc7c22f1e2f479f7b
parentf0142b9c4b53485e8ac55446916e94aee48389d1
snapshot: Store an actual GtkTransform

Instead of just tracking 2 integer translate_x/y coordinates, tracka a
full GtkTransform.

When creating actual nodes, if the transform is simple enough, just
create the node in a way that makes use of the transform. If the
node, can't represent the transform, just push a transform node instead
and automatically pop that node with the next gtk_snapshot_pop() call.
gtk/gtksnapshot.c
gtk/gtksnapshotprivate.h